package com.think.generator;

import com.baomidou.mybatisplus.generator.AutoGenerator;

/**
 * <p>
 * Mysql代码生成器
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-06
 */
public class MysqlGenerator extends SuperGenerator {

    /**
     * <p>
     * 代码生成器
     * </p>
     */
    public void generator(String... tableName) {
        AutoGenerator mpg = getAutoGenerator(tableName);
        mpg.execute();
        if (tableName == null) {
            System.err.println(" Generator Success !");
        } else {
            System.err.println(" TableName【 " + tableName + " 】" + "Generator Success !");
        }
    }

}
